<?php
include ("conn.php");
$id = $_POST['id'];
$name = $_POST['name'];
$ks = $_POST['ks'];
$pz = $_POST['pz'];
$sfzx =$_POST['sfzx'];
$sql = "update result set name = '" .$name ."' , ks = '$ks', pz = '$pz',sfzx ='$sfzx' where id = $id";
if ( $conn -> query($sql)){
	echo "修改成功!";
}else{
	echo "Error:" . $sql ."<br>" . $conn -> error;
}
$conn -> close();
?>